#ifndef __FileHelper_H__
#define __FileHelper_H__
#include "cocos2d.h"
#include "Hero.h"
#include "Drill.h"
#include "Monster.h"
#include "Goods.h"
#include "Equip.h"
#include "Gate.h"
#include "GlobalSetting.h"

USING_NS_CC;

class FileHelper {
public:
	static void GetStartState(const char* fileName);
	static void SaveStartState(const char* fileName, bool isInGame, int hero_life, int hero_curBlood, int gate, int floor, Vector<Goods*> all_goods, Vector<Equip*> all_equip);
	static void GetGate(const char* fileName, int id, Gate* gate);
	static void SaveGate(const char* fileName, int id, Gate* gate);
	static void GetGoods(const char* fileName, Goods* goods);
	static void SaveGoods(const char* fileName,Goods* goods);
	static void GetEquip(const char* fileName, Equip* equip);
	static void SaveEquip(const char* fileName, Equip* equip);
	static void GetHero(const char* fileName, Hero* hero);
	static void SaveHero(const char* fileName, Hero* hero);
	static void GetDrill(const char* fileName, Drill* drill);
	static void SaveDrill(const char* fileName, Drill* drill);
	static void GetMonster(const char* fileName, Monster* monster);
	static void SaveMonster(const char* fileName, Monster* monster);
};
#endif // !__FileHelper_H__
